//
//  ZJHSessionConfiguration.h
//  ZJHURLProtocol
//
//  Created by ZhangJingHao2345 on 2018/8/24.
//  Copyright © 2018年 ZhangJingHao2345. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "UrlModel.h"

@interface ZJHSessionConfiguration : NSObject

@property (nonatomic,assign) BOOL isSwizzle;

//需要拦截的url
@property (nonatomic, strong) NSMutableArray *larray;

//已加载的url
@property (nonatomic, strong) NSMutableArray <UrlModel *> *yarray;


+ (void)saveUrlModel:(UrlModel *)urlModel;

///获取当前已经存储的数据
+ (NSMutableArray <UrlModel *>*)getUrlModel;


+ (ZJHSessionConfiguration *)defaultConfiguration;

/**
 *  swizzle NSURLSessionConfiguration's protocolClasses method
 */
- (void)load;

/**
 *  make NSURLSessionConfiguration's protocolClasses method is normal
 */
- (void)unload;

@end
